<?php
class AboutController extends AppController{
    public function index()
    {
        $lang_code = $this->Session->read('lang_code');
        $this->loadModel('Category'); $this->Category->lang_code = $lang_code;
        $this->loadModel('Article'); $this->Article->lang_code = $lang_code;
        $category_id = $this->Category->get_category_id_by_code('about');
        $artiles = $this->Article->get_article_by_category_id($category_id, 0, 1);
        $this->set('artiles', $artiles);

        
        $meta_title = $artiles[0]['article_desc']['meta_title'];
        $meta_keywords = $artiles[0]['article_desc']['meta_keywords'];
        $meta_description = $artiles[0]['article_desc']['meta_description'];
        $this->set('meta_title', $meta_title);
        $this->set('meta_keywords', $meta_keywords);
        $this->set('meta_description', $meta_description);
        
        $breadcrumbs[] = array('title' => 'Về Cút Kít', 'link' => 've-cut-kit');
        $this->set('breadcrumbs', $breadcrumbs);
        
        $has_html = '';
        $this->set('has_html', $has_html);
        $header_menu_sidebar['title'] = 'Về Cút Kít';
        $header_menu_sidebar['link'] = 've-cut-kit';
        $this->set('header_menu_sidebar', $header_menu_sidebar);
        
        $menu_sidebar = array();
        $this->set('menu_sidebar', $menu_sidebar);
    }
}